<div class="bh-pj-conr-one bh-pj-border search-wrapper">
<div class="search-outer">
<div class='search-inner'>
	<ul class="search-tabs orange" id='trigger1'>
		<?php if($hotel):?><li class="hotel"><?php echo $hotelTitle?></li><?php endif?>
		<?php if($ticket):?><li class="ticket"><?php echo $ticketTitle?></li><?php endif?>
		<?php if($scenic):?><li class="scenic last"><?php echo $scenicTitle?></li><?php endif?>
	</ul>
	<div class="bh-clear"></div>
	<div class="bh-indexyd-con-jj bh-padB10">
		<div id='content1'>
			<?php if($hotel):?>
			<div class="jiudian pdt10 pdl5">
				<?php $form = $this->beginWidget('CActiveForm', array(
					'method' => 'get',
					'action' => Yii::app()->createUrl('provide/channel/hotelList'),
					'id' => 'form-hqs',
				))?>
				<table class='form-tb no-border fc_666 largespacing'>
					<tr>
						<th nowrap>入住城市：</th>
						<td><?php LyscHtml::citySelector($form, $hotel, 'searchCity',array('init-value' => '请输入城市','id'=>'hotel-city'))?></td>
					</tr>
					<tr>
						<th>酒店名称：</th>
						<td><?php echo $form->textField($hotel,'name',array(
								'class'=>' bh-mtop5',
								'id'=>'hotel-name',
								'init-value' => '请输入酒店名称'#酒店地址、街道、附近地标、建筑物...
							))?>
						</td>
					</tr>
					<!-- <tr>
						<th>价格范围：</th>
						<td><?php echo $form->dropDownList($hotel,'price',Yii::app()->enum->options('goods.price','nolimit'))?></td>
					</tr> -->
					<tr>
						<th>酒店星级：</th>
						<td><?php echo $form->dropDownList($hotel,'star',Yii::app()->enum->options('basic.hotelStar','nolimit'))?></td>
					</tr>
				</table>
				
				<?php $this->endWidget()?>
				
				<?php $form = $this->beginWidget('CActiveForm', array(
					'method' => 'get',
					'action' => Yii::app()->createUrl('provide/channel/hotelList'),
				))?>
				<table class='form-tb no-border fc_666 largespacing'>
					<tr>
						<th valign=top nowrap>热门地区：</th>
						<td><?php echo LyscHtml::buttonList($form, $hotel, 'searchCity', 
						Yii::app()->enum->options('basic.hotelRecommend', false)
						)?></td>
					</tr>
				</table>
				<?php $this->endWidget()?>
				
				<div class="bh-mtop15">
					<input id='submit-hqs' type="submit" name="bh-ydchaxun-jj" class="bh-ydchaxun-jj bh-mtop5 bh-mL_23" value="查询" />
				</div>
				
				<script>
					$('#submit-hqs').click(function() {
						$.citySelector.get('hotel-city').checkValue(function() {
							$('#form-hqs').submit();
						}, function() {
							alert("您输入的城市无效！");
						});
						return false;
					});
				</script>
				<script type="text/javascript">
//					bindTextInit($('#hotel-name'),$('#<?php echo $form->id?>'));
//					bindTextInit($('#hotel-city'),$('#<?php echo $form->id?>'));
				</script>
			</div>
			<?php endif?>
			<?php if($ticket):?>
				<?php $this->widget('lib.ext.data.DataWidget', array(
						'model' => $ticket,
                    	'data' => array(
                    		'returnModel' => new ReturnTicket()
                    	),
						'view' => 'application.views.partials.platform.ticket.start_city'
					));?>
			<?php endif?>
			<?php if($scenic):?>
			<div class="jingdian bh-textLt">
				<?php $form = $this->beginWidget('CActiveForm', array(
					'method' => 'get',
					'action' => Yii::app()->createUrl('provide/channel/scenicList'),
					'htmlOptions' => array('id'=>'scenic-form')
				))?>
				<div class="bh-ly-jj-hot_1 both_line bh-mtop8 bh-mlt10"><span class="bh-strong">热门城市：</span><br />
					<?php LyscHtml::buttonList($form, $scenic, 'province', Yii::app()->enum->options('district.scenic',false))?>	
				</div>
				<div class="bh-ly-jj-hot_1 both_line bh-mtop8 bh-mlt10"><span class="bh-strong">热门景区：</span><br />
					<?php foreach (ScenicRecommend::model()->findAll(array('limit'=>5,'order'=>'sort DESC')) as $key=>$one):?>
						<a href='<?php echo Yii::app()->createUrl('provide/channel/scenicView',array('id'=>$one->object_id))?>'><?php echo CHtml::value($one, 'relatedObj.fullTitle')?></a>
					<?php endforeach;?>
				</div>
				<div class="bh-ly-jj-hot_1 both_line bh-mtop8 bh-mlt10"><span class="bh-strong">搜索景区门票：</span><br />
				<?php echo $form->textField($scenic,'name',array(
					'class'=>'bh-ydxx-input-jj font_cr2 bh-textW',
					'id'=>'scenic-name',
					'init-value' => '请输入景区名'#或城市名
				))?>
				</div>
				<div class="bh-mtop15"><input type="submit" name="bh-ydchaxun-jj" class="bh-ydchaxun-jj bh-mtop5 bh-mL_23" value="查询" /></div>
			</div>
			<?php $this->endWidget()?>
		</div>
		<?php endif?>
		<div class="bh-clear"></div>
	</div>
</div>
</div>
<div class="bh-clear"></div>
</div>
<script>
bindTextInit($('#scenic-name'),$('#scenic-form'));
$.tabable({
	triggers: '#trigger1 > li',
	contents: '#content1 > div',
	hoverClass: 'bh-ly-jj-xuanz'
});
</script>


